﻿using Caliburn.Micro;
using System;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using ThunderboltInterfaceSharp.Views.UserControls;

namespace ThunderboltInterfaceSharp.ViewModels.UserControls.More;

public class SingleProgramViewModel : Screen
{
	public string MainTitle { get; set; } = "摸鱼摸鱼摸鱼";
	public string Subtitle { get; set; } = "心想事成";

	public bool IsAdvertisement { get; set; }

	public ImageSource Image { get; set; } = new BitmapImage
	{
		UriSource = new Uri($"../Resources/Images/fish.jpg", UriKind.Relative),
	};
	public SingleProgramViewModel()
	{
		MainTitle = "摸鱼摸鱼摸鱼";
		Subtitle = "心想事成";
		BitmapImage bImage = new BitmapImage();
		bImage.BeginInit();
		bImage.UriSource = new Uri($"../Resources/Images/fish.jpg", UriKind.Relative);
		bImage.EndInit();
		Image = bImage; //完成图片的更新
	}
}